import request from '@/utils/request'

// 获取用户分享信息
export function getUserShareOption(id) {
    return request({
        url: '/ds/wechat/wx_get',
        method: 'get',
        params: {
            id
        }
    })
}

// 保存用户分享信息
export function saveUserShareOption(id, expire, secret) {
    return request({
        url: '/ds/wechat/wx_update',
        method: 'get',
        params: {
            id,
            expire,
            secret
        }
    })
}

// 生成二维码
export function codeUpdate(key, time, dsid, lungid, name, orderid, orderstatus, status) {
    return request({
        url: '/ds/wechat/wx_code',
        method: 'get',
        params: {
            key,
            time,
            dsid,
            lungid,
            name,
            orderid,
            orderstatus,
            status
        }
    })
}